package com.its.oa.model;

import java.util.HashSet;
import java.util.Set;


/**
 * Permission entity. @author MyEclipse Persistence Tools
 */

public class Permission  implements java.io.Serializable {


    // Fields    

     /**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Integer id;
     private Module module;
     private String code;
     private String name;
     private String url;
     private Set<PermissionRole> permissionRoles = new HashSet<PermissionRole>(0);


    // Constructors

    /** default constructor */
    public Permission() {
    }

    
    /** full constructor */
    public Permission(Module module, String code, String name, String url, Set<PermissionRole> permissionRoles) {
        this.module = module;
        this.code = code;
        this.name = name;
        this.url = url;
        this.permissionRoles = permissionRoles;
    }

   
    // Property accessors

    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }

    public Module getModule() {
        return this.module;
    }
    
    public void setModule(Module module) {
        this.module = module;
    }

    public String getCode() {
        return this.code;
    }
    
    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return this.name;
    }
    
    public void setName(String name) {
        this.name = name;
    }

    public String getUrl() {
        return this.url;
    }
    
    public void setUrl(String url) {
        this.url = url;
    }

    public Set<PermissionRole> getPermissionRoles() {
        return this.permissionRoles;
    }
    
    public void setPermissionRoles(Set<PermissionRole> permissionRoles) {
        this.permissionRoles = permissionRoles;
    }
   








}